import React from 'react';
import { View, StyleSheet } from 'react-native';
import colors from '../../config/colors';
import ViewPropTypes from '../../config/ViewPropTypes';

const Divider = ({
  dividerStyle
}) =>
  <View style={[styles.dividerContainer, dividerStyle && dividerStyle]} />;

Divider.propTypes = {
  dividerStyle: ViewPropTypes.style,
};


const styles = StyleSheet.create({
  dividerContainer: {
    height: 1,
    backgroundColor: colors.grey5,
  }
});

export default Divider;
